<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Source Templates Wizard</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="../css/style.css" type="text/css">
</head>

<body>
<table width="100%" border="0" cellpadding="4">
  <tr>
    <td class="head" height="16">Source Templates Wizard</td>
  </tr>
  <tr>
    <td bgcolor="#FF9900" height="6"></td>
  </tr>
  <tr>
    <td height=6></td>
  </tr>
</table>
<p class="title">Source Templates Wizard</p>
<p class="text">Source Templates Wizard is designed to extend code editor. It 
includes a group of code templates. Both Delphi and C++Builder are supported.</p>
<p class="text">After defining code templates, you can insert them into source 
code. You can use pre-defined macro or user-defined macro in code template, when 
inserting they will be replaced by actual text.</p>
<p class="text" align="left"> 　</p>
<p class="title">Code Template Settings</p>
<p class="text" align="left">This dialog lists all code templates, which shows 
as below: </p>
<p class="text" align="center"> 
<img border="0" src="srctemplates.png"></p>
<p class="title" align="left"> 　</p>
<ul>
  <li>
<p class="text" align="left"><b>Add</b>: Add a new code template.</p>
  </li>
  <li>
<p class="text" align="left"><b>Delete</b>: Delete selected code template.</p>
  </li>
  <li>
<p class="text" align="left"><b>Clear</b>: Delete all code templates.</p>
  </li>
  <li>
<p class="text" align="left"><b>Edit</b>: Edit selected code template.</p>
  </li>
  <li>
<p class="text" align="left"><b>Move Up</b>: Move selected code template up.</p>
  </li>
  <li>
<p class="text" align="left"><b>Move Down</b>: Move selected code template down.</p>
  </li>
  <li>
<p class="text" align="left"><b>Import</b>: Import code templates from data 
file. If you select append mode, the new templates will append to the last of 
current list.</p>
  </li>
  <li>
<p class="text" align="left"><b>Export</b>: Export code templates to data file.</p>
  </li>
</ul>
<p class="title" align="left"> 　</p>
<p class="title">Template Editor</p>
<p class="text" align="left">When user adds or edits a code template, the 
Template Editor shows as below: </p>
<p align="center" class="text"><img border="0" src="srctempeditfrm.png"></p>
<p class="title" align="left">
Template Options</p>
<ul>
  <li>
<p class="text" align="left">
<b>Title</b>: Input the title for menu item.</p>
  </li>
  <li>
<p class="text" align="left">
<b>Icon</b>: Select the icon for menu item.</p>
  </li>
  <li>
<p class="text" align="left">
<b>ShortCut</b>: Set the shortcut to call template.</p>
  </li>
  <li>
<p class="text" align="left">
<b>Desc</b>: Input the description of template, it used in button hint.</p>
  </li>
  <li>
<p class="text" align="left">
<b>Location</b>: Select the location of inserting template.</p>
  </li>
  <li>
<p class="text" align="left">
<b>Disable this Template</b>: Whether display this template in menu.</p>
  </li>
  <li>
<p class="text" align="left">
<b>Restore Cursor Position after Insert</b>: For templates which are inserted to 
unit header or other positions, whether restore cursor position after insert. 
This switch will override the position defined by %Cursor% macro.</p>
  </li>
  <li>
<p class="text" align="left">
<b>For Pascal File</b>: This template is for Pascal file and can be shown in Delphi.</p>
  </li>
  <li>
<p class="text" align="left">
<b>For C/C++ File</b>: This template is for C/C++ file and can be shown in C++Builder.</p>
  </li>
</ul>
<p class="text" align="left">
　</p>
<p class="text" align="left">
You can use pre-defined and user-defined macro in code template.</p>
<p class="text" align="left">
Select a macro and click <b>Insert</b> button, then the pre-defined macro will 
be insert to current position.</p>
<p class="text" align="left">
User-defined macro need wrapped by two &quot;%&quot;, macro name may any characters.</p>
<p class="text" align="left">
When a template executed, pre-defined macros will replaced automatically, but 
user-defined macros will show a dialog to require user inputting actual text. </p>
<p class="text" align="center">
<img src="srctempmacroform.png"></p>
<p class="text" align="left">
The macro is the name of user-defined macro, and the value is actual text to be 
replaced.</p>
<p class="text" align="left">
Enter key to set the focus to next macro. When finished, actual context will be 
inserted to current code.</p>
<p class="title" align="left">　<p class="title">Links</p>
<p class="text" align="left">
<a href="wizards.htm">Basic Operation</a><p class="text" align="left">
<a href="../options/wizconfig.htm">CnWizards Settings</a><p class="text" align="left">
<a href="../cnpack/index.htm">About CnWizards</a>
<p class="text" align="left">&nbsp; 
<hr>
<p class="text" align="center"><a href="http://www.cnpack.org">Copyrights 
2001-2022 CnPack Team</a></p>
</body>
</html>